package User;

import Contact.Contactsllist;

import Operate.*;

import java.util.Scanner;

public class User extends User1{
    public int func(){
        System.out.println("*************");
        System.out.println("0.退出程序");
        System.out.println("1.增加信息");
        System.out.println("2.减少信息");
        System.out.println("3.改变信息");
        System.out.println("4.显示信息");
        System.out.println("5.寻找信息");
        System.out.println("************");
        System.out.println("输入你的操作：");
        Scanner scanner=new Scanner(System.in);
        int choice=scanner.nextInt();
        return choice;
    }
    Operation[] operates={
            new Exit(),
            new Add(),
            new Dul(),
            new Change(),
            new Show(),
            new Find()
    };
    public void Dooperation(int choice,Contactsllist contactsllist){
      operates[choice].Operate(contactsllist);
    };
    }
